package com.supplychain.scm.core.task.bean.importtask;


import com.supplychain.scm.core.basis.enums.ProductInfoEnum;
import com.supplychain.scm.core.task.constants.ExcelConstants;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName TaskImport
 * @createTime 11:27:00 2023/04/01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaskImport implements Serializable {
	private static final long serialVersionUID = -8220909916427516211L;

	/**
	 * 文件存储路径
	 */
	@NotNull
	private ProductInfoEnum productInfoEnum;

	/**
	 * sheet名称
	 */
	@NotBlank
	private String sheetName;

	/**
	 * 文件名称
	 */
	private String fileName;

	/**
	 * 导入文件
	 */
	@NotBlank
	private String importFileUrl;

	/**
	 * 导入结果文件
	 */
	private String fileUrl;

	/**
	 * 子任务大小(拆分)
	 */
	private Integer splitCount;

	/**
	 * 解析行数 默认100
	 */
	private int limitCount = ExcelConstants.LIMIT_COUNT;

	/**
	 * 操作人
	 */
	private String operator;
}
